import { multiply } from './MathUtil'

export default function (value: any): number {
    const num = Number(value)
    if (isNaN(num)) {
        return 0
    }

    return multiply(num, 1000)
}
